
<script language="javascript" type="text/javascript" src="/assets/My97DatePicker/WdatePicker.js"></script>
<style>
    .Wdate{
        height:31px;
    }
</style>
<!-- END RIBBON -->
<div class="content">
    <form id="add-form" class="form-horizontal nice-validator n-default n-bootstrap" role="form" data-toggle="validator" method="POST" action="" novalidate="novalidate">

        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">创建人id:</label>
            <div class="col-xs-12 col-sm-8">
                <input id="c-opid" class="form-control" name="opid"  value="{$admin.id}" type="text" readonly="readonly">
            </div>
        </div>
        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">创建者用户名:</label>
            <div class="col-xs-12 col-sm-8">
                <input id="c-opname" class="form-control" name="opname" value="{$admin.username}" type="text" readonly="readonly">
            </div>
        </div>
        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">抵扣金额:</label>
            <div class="col-xs-12 col-sm-8">
                <input id="c-price" class="form-control" name="price" type="number">
            </div>
        </div>
        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">币种:</label>
            <div class="col-xs-12 col-sm-8">
                <input id="c-currency" class="form-control" name="currency" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">使用条件说明:</label>
            <div class="col-xs-12 col-sm-8">
                <textarea class="form-control" name="info"></textarea>
            </div>
        </div>
        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">使用开始时间:</label>
            <div class="col-xs-12 col-sm-8">
                <input class="Wdate" type="text"  name="start_time" onClick="WdatePicker({el:this,dateFmt:'yyyy-MM-dd HH:mm:ss'})"/>
            </div>
        </div>
        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">使用结束日期:</label>
            <div class="col-xs-12 col-sm-8">
                <input class="Wdate" type="text" name="end_time" onClick="WdatePicker({el:this,dateFmt:'yyyy-MM-dd HH:mm:ss'})">
            </div>
        </div>
        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">劵总量:</label>
            <div class="col-xs-12 col-sm-8">
                <input id="c-num" class="form-control" name="num" type="text">
            </div>
        </div>
        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">状态:</label>
            <div class="col-xs-12 col-sm-8">
                <input  name="status"  value="0" type="radio" checked="checked">上架
                <input  name="status"  value="1" type="radio">下架
            </div>
        </div>
        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">页面显示文字:</label>
            <div class="col-xs-12 col-sm-8">
                <textarea class="form-control" name="showinfo"></textarea>
            </div>
        </div>
        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">折扣限定:</label>
            <div class="col-xs-12 col-sm-8">
                <input  name="discounttype"  value="0" type="radio">所有产品可用
                <input  name="discounttype"  value="1" type="radio">折扣产品可用
            </div>
        </div>
        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-2">限定金额:</label>
            <div class="col-xs-12 col-sm-8">
                <input id="c-pricetype" class="form-control" name="pricetype" type="text">
            </div>
        </div>
        <div class="form-group layer-footer">
            <label class="control-label col-xs-12 col-sm-2"></label>
            <div class="col-xs-12 col-sm-8">
                <button type="submit" class="btn btn-success btn-embossed">确定</button>
                <a   href="/admin/coupon/index" class="btn btn-default btn-embossed">返回</a>
            </div>
        </div>
    </form>

</div>
